<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/page/common/commonConfig.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
    <title>系统角色-资源绑定</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script src="<%=basePath%>component/layout.js"></script>
    <script src="<%=basePath%>component/grid.js"></script>
    <script type="text/javascript">
	var dhxLayout = createLayoutNormal('2U',false,true);
	var mygrid;
	
	function changeRightPage(url){
		layoutCellAttachURL(dhxLayout,'b',url);
	}
	
	function initContainerBaseLayout(){
		dhxLayout.cells('a').hideHeader();
		dhxLayout.cells('a').setWidth(Number('260'));
		mygrid = createGridFromLayoutCell(dhxLayout.cells('a'));
		dhxLayout.cells('b').hideHeader();
	}
	
	var dhxGrid = {
		initDataTable : function () {
		    mygrid.setHeader("系统角色名称");
		    mygrid.setInitWidths("258");
		    mygrid.setColAlign("center");
		    mygrid.setColTypes("ro");
		    mygrid.attachEvent("onRowSelect", this.openResource);
		    mygrid.init();
		    setSkin(mygrid);
		    mygrid.loadXML('<%=basePath%>system-roleSystem/RoleSystemAction!roleSystemGridForResource.action',function(){
mygrid.setColLabel(0,'系统角色名称 <input name="gridFilter" id="wnameFilter_0" type="text" style="width: 100px; border:1px solid gray;" onClick="(arguments[0]||window.event).cancelBubble=true;" onKeyUp="filterBy(mygrid)" ></input>');
		    });
		},
		openResource : function(rowID,celInd){
			changeRightPage('<%=basePath%>/page/system/authorization/roleSystem_resource.jsp?roleSystemId=' + rowID);
		}
	};
	
	$(function (){
		initContainerBaseLayout();
		dhxGrid.initDataTable();
	});
	</script>	
</head>
	
<body>
</body>

</html>
